#include "uppg9.h"


uppg9::uppg9()
{
}


uppg9::~uppg9()
{
}

void uppg9::run(){
	float tal1[25] = { 1.5, 1005105150.246357, 13525.576, 36.57, 135536.01, 2456346.246, 4634.056, 2464369.36, 135245, 2464 / 145,
		34656, 346.645, 0.456, 0.4567567, -36545.456, 0.4656, 36456.678, 356450, 2345.5476, 23545.1,
		345.457, 457.135234534657, 356, 457658768.235, 3564576 };
	float tal2[25] = { 1.5, 43545.4523, 13525.576, 36.57, 453, 2456346.246, 4634.056, 2464369.36, 135245, 2464 / 145,
		34656, -45348/-1518, 0.456, -4534, -4534, 0.4656, 123453, 356450, 2345.5476, 23545.1,
		345.457, -453453, 356, 457658768.235, 3564576 };

	for (int i = 0; i < 25; i++){
		f1.push_back(tal1[i]);
		f2.push_back(tal2[i]);
	}

	for (int i = 0; i < f1.size(); i++){
		f3.push_back(f1[i] + f2[i]);
	}

	for (int i = 0; i < f1.size(); i++){
		cout << setw(15) << f1[i] << setw(15) << f2[i] << setw(15) << f3[i] << endl;
	}
}